Page({
  data: {
    userAvat: "https://s1.ax1x.com/2023/04/14/p9SMKVH.jpg",
    userName: ""
  },
  // 获取用户头像
  onChooseAvatar(e) {
    // console.log(e)
    this.setData({
      userAvat: e.detail.avatarUrl
    })
  }, 
  // 获取用户昵称
  getUserName(e){ 
    // console.log("getUserName: " + e) 
    this.setData({
      userName: e.detail.value.username
    })
    
    let tempUserName = this.data.userName
    let tempUserAvat = this.data.userAvat
    wx.redirectTo({
      url: '../pyq/pyq?userName=' + tempUserName + "&userAvat=" + tempUserAvat,
    })
  },
  // 跳转到点赞生成页面
  goToPYQ(e) {
    // console.log("goToPYQ: " + e)
  }
})